package com.mybook.app.mapper;

import com.mybook.app.core.CommonMapper;
import com.mybook.app.model.BookInfo;
import com.mybook.app.model.UserInfo;
import com.mybook.app.response.UserInfoDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper extends CommonMapper<UserInfo> {

    UserInfo findUserInfoById(@Param("id") String id);

    UserInfo findUserInfoByMobile(@Param("mobile") String mobile);

    UserInfo findUserInfoByMobileAndPwd(@Param("mobile") String mobile, @Param("pwd") String pwd);

    UserInfoDetail findUserInfoDetailById(@Param("id") String id);

    UserInfo findUserInfoDetailByWxId(@Param("wxId") String wxId);

    Integer updateUserInfoById(UserInfo userInfo);


}